<?php
class Authentication extends Eloquent
{
    public static $timestamps = false;

    public function user()
    {
        return $this->belongs_to('User');
    }

    public static function receive($provider, $id)
    {
        return static::where_provider($provider)->where_user_id($id)->first();
    }
}